package com.douxg.learning.springboot.resttemplate;

import com.douxg.learning.springboot.resttemplate.service.impl.Main2ServiceImpl;
import com.douxg.learning.springboot.resttemplate.service.impl.MainServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Description
 * @Auther douxg
 * @Date 2020/12/30 10:34
 */
@RequestMapping("")
public class SubTestController extends TestController {
    @Autowired
    private MainServiceImpl mainServiceImpl;
    @Autowired
    private Main2ServiceImpl main2ServiceImpl;

    @RequestMapping("/mainSub")
    public String mainSub() {
        return "子controller：" + mainServiceImpl.in();
    }

    @RequestMapping("/mainSub2")
    public String mainSub2() {
        return "子controller：" + main2ServiceImpl.in2();
    }
}
